const redirect = { 
    path: '/index/contract', 
    redirect: '/index/contract/info'
} // 访问路由重定向
const pagePath = {
    path: '/index/contract',
    component: () => import('@/views/contract/Contract.vue'),
    name: 'Contract',
    children: [
        {
            path: '/index/contract/info',
            component: import('@/views/contract/info/info.vue'),
            name: 'contractInfo'
        },
        {
            path: '/index/contract/contractAudit',
            component: import('@/views/contract/contractAudit/contractAudit.vue'),
            name: 'ContractAudit'
        },
        {
            path: '/index/contract/contractRenew',
            component: import('@/views/contract/contractRenew/contractRenew.vue'),
            name: 'ContractRenew'
        },
        {
            path: '/index/contract/allocation',
            component: import('@/views/contract/allocation/allocation.vue'),
            name: 'Allocation'
        },
        {
            path: '/index/contract/setting',
            component: import('@/views/contract/setting/setting.vue'),
            name: 'contractSetting'
        }
    ]
} // 访问路由路径
const parent = '/index'
const levelOne = false // 是否是一级路由
const contractRouter = {
    redirect,
    pagePath,
    parent,
    levelOne
}
export {
    contractRouter
}